/************************************************************************

								Heroes IV
					  Copyright 2001, The 3DO Company

	------------------------------------------------------------------
  						 combat_ai_wait_action.cpp

	$Header: $

	$NoKeywords: $

 ************************************************************************/

// kill the 255+ character identifier warning.  Templates tend to exceed that easily.
#include "precompiled.h"
#pragma warning( disable: 4786 )

#include "combat_ai_wait_action.h"

#include <limits>
#include <sstream>
#include "battlefield.h"
#include "debug_message.h"

void t_combat_ai_wait_action::weigh_action(t_combat_ai const& owner)
{
	// Currently used only for backup
	m_never_use = true;
}


void t_combat_ai_wait_action::perform_action(void)
{
#ifdef AI_DEBUG
	t_battlefield &battlefield = t_battlefield::get();
	std::ostringstream msg;
	msg << "AI: " 
		<< battlefield.get_acting_creature()->get_number() 
		<< " " 
		<< battlefield.get_acting_creature()->get_name() 
		<< " decided to wait (weight " 
		<< m_weight 
		<< ")\n";

	DEBUG_MESSAGE(msg.str().c_str());
#endif

	m_battlefield.wait_action();
}

